
import { JsonUtil } from "db://app-game/core/utils/JsonUtil";

export class TableLevel {
    static TableName: string = "Level";

    public data: any;

    init(id: number) {
        var table = JsonUtil.get(TableLevel.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 地图Id */
    get mapId(): number {
        return this.data.mapId;
    }
    /** 名称 */
    get name(): string {
        return this.data.name;
    }
    /** 描述 */
    get description(): string {
        return this.data.description;
    }
    /** 角色初始位置 */
    get roleInitPosition(): any {
        return this.data.roleInitPosition;
    }
}
    